package com.wolf.etl.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.wolf.provider.order.info.FieldInfo;
import com.wolf.provider.order.info.IdInfo;
import com.wolf.provider.order.info.TableInfo;

import java.util.Date;

/**
 * @author sdyang
 * @date 2019/12/2 11:33
 **/
@TableInfo(value = "etl_handler")
public class EtlHandlerModel {

    @IdInfo
    private Long id;

    @FieldInfo(value = "handler_id")
    private Long handler_id;

    @FieldInfo(value = "handler_type")
    private String handler_type;

    @FieldInfo(value = "order_num")
    private Float order_num;

    @FieldInfo(value = "status")
    private Boolean status;

    @FieldInfo(value = "etl_define_id")
    private Long etl_define_id;

    /**
     * 创建人
     */
    @FieldInfo(value = "creator")
    private String creator = "admin";

    /**
     * 创建时间
     */
    @FieldInfo(value = "create_time")
    private Date create_time = new Date();

    /**
     * 修改人
     */
    @JSONField(format="yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_person")
    private String modified_person;

    /**
     * 修改时间
     */
    @JSONField(format="yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_time")
    private Date modified_time;

    /**
     * 租户id
     */
    @FieldInfo(value = "client_id")
    private Long client_id = 100L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getHandler_id() {
        return handler_id;
    }

    public void setHandler_id(Long handler_id) {
        this.handler_id = handler_id;
    }

    public String getHandler_type() {
        return handler_type;
    }

    public void setHandler_type(String handler_type) {
        this.handler_type = handler_type;
    }

    public Float getOrder_num() {
        return order_num;
    }

    public void setOrder_num(Float order_num) {
        this.order_num = order_num;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getModified_person() {
        return modified_person;
    }

    public void setModified_person(String modified_person) {
        this.modified_person = modified_person;
    }

    public Date getModified_time() {
        return modified_time;
    }

    public void setModified_time(Date modified_time) {
        this.modified_time = modified_time;
    }

    public Long getClient_id() {
        return client_id;
    }

    public void setClient_id(Long client_id) {
        this.client_id = client_id;
    }

    public Long getEtl_define_id() {
        return etl_define_id;
    }

    public void setEtl_define_id(Long etl_define_id) {
        this.etl_define_id = etl_define_id;
    }
}
